package org.example.auth.convert;

import org.example.auth.contract.request.AuthorityRequestForPage;
import org.example.auth.contract.request.AuthorityRequestForSave;
import org.example.auth.contract.response.AuthorityResponse;
import org.example.auth.model.entity.Authority;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface AuthorityConvert {

    Authority cloneFromRequest(AuthorityRequestForSave request);

    AuthorityResponse clone(Authority authority);

    List<AuthorityResponse> clone(List<Authority> allList);

    Authority cloneFromRequest(AuthorityRequestForPage request);
}
